package com.hyt.it.ogt.kq.service.gov.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyt.it.ogt.kq.service.gov.model.entity.TimeRoomPassword;
import com.hyt.it.ogt.kq.service.gov.model.param.TimeRoomPasswordParam;
import com.hyt.it.ogt.kq.service.gov.model.vo.TimeRoomCodeVO;
import com.hyt.it.ogt.kq.service.gov.model.vo.TimeRoomPasswordVO;
import com.hyt.model.PageParam;

import java.util.List;

/**
 * <p>
 * 场次密码信息表 Mapper 接口
 * </p>
 *
 * @author huangyh
 * @since 2021-04-08
 */
public interface TimeRoomPasswordMapper extends BaseMapper<TimeRoomPassword> {

    /**
     * 查询未生成场次密码的场次数据
     * @param taskId
     * @param timeId
     * @return
     */
    List<TimeRoomCodeVO> selectTimeRoomNeedPassword(String taskId, String timeId);

    /**
     * 清除已经删除场次的场次密码
     * @param taskId
     * @param timeId
     * @return
     */
    int deleteTimeRoomPassword(String taskId,String timeId);

    /**
     * 查询场次密码-密码管理
     * @param pageParam
     * @param timeRoomPasswordParam
     * @return
     */
    Page<TimeRoomPasswordVO> getTimeRoomPassword(PageParam<TimeRoomPasswordVO> pageParam, TimeRoomPasswordParam timeRoomPasswordParam);

}
